package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BasetransMapper;
import com.ruoyi.system.domain.Basetrans;
import com.ruoyi.system.service.IBasetransService;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-18
 */
@Service
public class BasetransServiceImpl implements IBasetransService 
{
    @Autowired
    private BasetransMapper basetransMapper;

    /**
     * 查询
     * 
     * @param tradeId 主键
     * @return 
     */
    @Override
    public Basetrans selectBasetransByTradeId(String tradeId)
    {
        return basetransMapper.selectBasetransByTradeId(tradeId);
    }

    /**
     * 查询列表
     * 
     * @param basetrans 
     * @return 
     */
    @Override
    public List<Basetrans> selectBasetransList(Basetrans basetrans)
    {
        return basetransMapper.selectBasetransList(basetrans);
    }

    @Override
    public List<Basetrans> selectBasetransInfo(Basetrans basetrans)
    {
        return basetransMapper.selectBasetransInfo(basetrans);
    }

    @Override
    public List<Basetrans> selectBasetransCount(Basetrans basetrans)
    {
        return basetransMapper.selectBasetransCount(basetrans);
    }

    /**
     * 新增
     * 
     * @param basetrans 
     * @return 结果
     */
    @Override
    public int insertBasetrans(Basetrans basetrans)
    {
        return basetransMapper.insertBasetrans(basetrans);
    }

    /**
     * 修改
     * 
     * @param basetrans 
     * @return 结果
     */
    @Override
    public int updateBasetrans(Basetrans basetrans)
    {
        return basetransMapper.updateBasetrans(basetrans);
    }

    /**
     * 批量删除
     * 
     * @param tradeIds 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteBasetransByTradeIds(String[] tradeIds)
    {
        return basetransMapper.deleteBasetransByTradeIds(tradeIds);
    }

    /**
     * 删除信息
     * 
     * @param tradeId 主键
     * @return 结果
     */
    @Override
    public int deleteBasetransByTradeId(String tradeId)
    {
        return basetransMapper.deleteBasetransByTradeId(tradeId);
    }
}
